import { createBrowserRouter, Navigate } from "react-router"
import Welcome from "../pages/Welcome"
import Main from "../pages/Main"

const routes = [
    {
        path: '/welcome',
        Component: Welcome
    },
    {
        path: '/main',
        Component: Main
    },
    {
        path: '*',
        element: <Navigate to="/welcome" />
    }
]

export const router = createBrowserRouter(routes)